const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// 创建约束条件
const userSchema = new Schema({
    user_name: {
        type: String,
        unique: true,
        required: true,
    },
    password: {
        type: String,
        required: true
    }
})
// 创建模型对象
module.exports = mongoose.model('users', userSchema);